<?php 
global $companyName, $companyAddress,$companyPhone,$companyContact,$companyEmail,$companySite,$companySupport,$companyFax;
?>
<div id="bg-footer">
        	<div id="footer">
            	<ul>
                	<li>
                    	<h5>Contact us</h5>
                        <p>Tel: <?php echo $companyPhone;?></p>
                        <p>Fax: <?php echo $companyFax;?></p>
                        <p>Website: <?php echo $companySite;?></p>
                        <p>Email: <?php echo $companyContact;?></p>
                   </li>
                   	<li>
                    	<h5>Latest news</h5>
                        <ul>
                        	<?php 
                        	$args = null;
							$num_post		= 4;
							$post_type		= 'news-event'; 
							$orderby		= 'date';
							$order			= 'DESC';
							$meta_key		= $wpdb->prefix.'display';
							$meta_value		= 'display';
							$args = db_query_all_post_in_post_type($num_post, $post_type, $orderby, $order, $meta_key, $meta_value);					
							query_posts($args);
							include TEMPLATEPATH.'/views/loop-footer.php';
                        	?>                        
                        </ul>
                    </li>
                    <li>
                    	<h5>Quick link</h5>
                        <?php
                        $bookmark = get_bookmarks(array(				
							'limit'  => 4
                          )) ;                                              
                        ?>
                        <ul>
                        <?php
                         foreach ($bookmark as $value) 
                         {
                         ?>
                         <li><a target="<?php echo $value->link_target;?>" href="<?php echo $value->link_url;?>" title=<?php echo $value->link_description;?>><?php echo $value->link_name;?></a></li>
                         <?php 
                         }
                        ?>                            
                        </ul>
                    </li>
                    <li>
                    	<h5>Follow us</h5>
                        <ul class="social">
                        	<li><a href="#"><img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/mangxahoi_11.png" alt="" /></a></li>
                            <li><a href="#"><img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/mangxahoi_13.png" alt="" /></a></li>
                            <li><a href="#"><img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/mangxahoi_15.png" alt="" /></a></li>
                            <li><a href="<?php echo WP_MYSITE_URL;?>/feed"><img src="<?php echo WP_MYSITE_TEMPLATE_URL;?>/images/mangxahoi_17.png" alt="" /></a></li>
                        </ul>
                    </li>                   
                </ul>
                <div class="clear"></div>
                <div class="copyright"><a href="<?php echo WP_MYSITE_URL;?>">© 2012 Backpake's House</a>.All right resrved.</div>
                <div class="visa">
                	<span class="a-visa"></span>
                    <span class="a-master"></span>
                    <span class="a-metabank"></span>
                </div>
            </div>
        </div>
        <!--end footer-->
        
    </div>
</div>
</body>
</html>